//
//  ScaleButton.swift
//  EasePods
//
//  Created by 李然 on 2024/5/8.
//

import UIKit

class ScaleButton: AnimationButton {
    
    override func configureButtonStyles() {
        let bgColor = R.color.common_22_button_n() ?? .clear
        setBackgroundColor(bgColor, for: .normal)
        setBackgroundColor(bgColor, for: .highlighted)
        setBackgroundColor(bgColor.withAlphaComponent(0.8), for: .disabled)
        setTitleColor(R.color.common_24_button_text(), for: .normal)
        titleLabel?.font = Fonts.systemFont(ofSize: 16)
        layer.cornerRadius = 8
        setScale(1.0, for: .normal, animated: true, animationDuration: 0.25)
        setScale(0.96, for: .highlighted, animated: true, animationDuration: 0.1)
    }
}
